const {
  getRoomDetailAPI
} = require("../../../apis/room")

Page({
  data: {
    room: {}
  },
  editHouse() {
    wx.navigateTo({
      url: '/house_pkg/pages/form/index?room=' + JSON.stringify(this.data.room),
    })
  },
  async onLoad({
    id
  }) {
    const res = await getRoomDetailAPI(id)
    this.setData({
      room: res.data
    })

  }
})